import request from '@/utils/request'

// 处方列表
export function prescriptionList(data) {
    return request({
        url: `/admin/template/prescription/list`,
        method: 'post',
        data
    })
}
// 处方创建
export function prescriptionCreate(data) {
    return request({
        url: '/admin/template/prescription/create',
        method: 'post',
        data
    })
}
// 处方删除
export function prescriptionDelete(id) {
    return request({
        url: `/admin/template/prescription/${id}`,
        method: 'delete'
    })
}
// 处方详情
export function prescriptionDetails(id) {
    return request({
        url: `/admin/template/prescription/${id}`,
        method: 'get'
    })
}
// 处方编辑
export function prescriptionEdit(data) {
    return request({
        url: `/admin/template/prescription/update`,
        method: 'post',
        data
    })
}

// 医嘱列表
export function medicalAdviceList(data) {
    return request({
        url: `/admin/template/advice/list`,
        method: 'post',
        data
    })
}

// 医嘱---创建
export function medicalAdviceCreate(data) {
    return request({
        url: `/admin/template/advice/create`,
        method: 'post',
        data
    })
}


// 医嘱---修改
export function medicalAdviceEdit(data) {
    return request({
        url: `/admin/template/advice/update`,
        method: 'post',
        data
    })
}

// 医嘱---详情
export function medicalAdviceDetail(id) {
    return request({
        url: `/admin/template/advice/${id}`,
        method: 'get'
    })
}

// 医嘱---删除
export function medicalAdviceDelete(id) {
    return request({
        url: `/admin/template/advice/${id}`,
        method: 'delete'
    })
}